package com.my.controller;

import com.my.api.JifenApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/jifen")
public class JifenController {

    @Autowired
    JifenApi jifenApi;

    @GetMapping("/up")
    public String up(){
        String result = jifenApi.up("手机");
        System.out.println(result);
        return result;
    }
}
